/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Administrador.Interfaz;

import javax.swing.*;
import javax.swing.table.DefaultTableModel;
/**
 *
 * @author joanna
 */
public class Prueba extends javax.swing.JPanel {

    /**
     * Creates new form Consulta
     */
    public Prueba() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        contenedorTablaInf = new javax.swing.JScrollPane();
        informacionTerminales = new javax.swing.JTable();

        setMinimumSize(new java.awt.Dimension(870, 490));
        setOpaque(false);
        setPreferredSize(new java.awt.Dimension(870, 490));
        setLayout(null);

        informacionTerminales.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Codigo de Almacen", "Numero de Terminales", "Codigo de Terminal"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        informacionTerminales.setColumnSelectionAllowed(true);
        informacionTerminales.getTableHeader().setReorderingAllowed(false);
        contenedorTablaInf.setViewportView(informacionTerminales);
        informacionTerminales.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        if (informacionTerminales.getColumnModel().getColumnCount() > 0) {
            informacionTerminales.getColumnModel().getColumn(0).setResizable(false);
            informacionTerminales.getColumnModel().getColumn(1).setResizable(false);
            informacionTerminales.getColumnModel().getColumn(2).setResizable(false);
        }

        add(contenedorTablaInf);
        contenedorTablaInf.setBounds(60, 230, 730, 100);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane contenedorTablaInf;
    private javax.swing.JTable informacionTerminales;
    // End of variables declaration//GEN-END:variables
}
